+Fri Mar 5 01:45:04 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * gtk/gtkfilechooserdefault.c (shortcuts_append_paths): insert in
+ the correct place instead of naïvely appending.
+ (shortcuts_add_volumes): refilter the model
+ (shortcuts_add_bookmarks): refilter the model
+ (gtk_file_chooser_default_add_shortcut_folder): refilter the model
+
2004-03-04 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdialog.c (response_cb): New handler. Ask the
+Fri Mar 5 01:45:04 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * gtk/gtkfilechooserdefault.c (shortcuts_append_paths): insert in
+ the correct place instead of naïvely appending.
+ (shortcuts_add_volumes): refilter the model
+ (shortcuts_add_bookmarks): refilter the model
+ (gtk_file_chooser_default_add_shortcut_folder): refilter the model
+
2004-03-04 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdialog.c (response_cb): New handler. Ask the
+Fri Mar 5 01:45:04 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * gtk/gtkfilechooserdefault.c (shortcuts_append_paths): insert in
+ the correct place instead of naïvely appending.
+ (shortcuts_add_volumes): refilter the model
+ (shortcuts_add_bookmarks): refilter the model
+ (gtk_file_chooser_default_add_shortcut_folder): refilter the model
+
2004-03-04 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdialog.c (response_cb): New handler. Ask the
+Fri Mar 5 01:45:04 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * gtk/gtkfilechooserdefault.c (shortcuts_append_paths): insert in
+ the correct place instead of naïvely appending.
+ (shortcuts_add_volumes): refilter the model
+ (shortcuts_add_bookmarks): refilter the model
+ (gtk_file_chooser_default_add_shortcut_folder): refilter the model
+
2004-03-04 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdialog.c (response_cb): New handler. Ask the
+Fri Mar 5 01:45:04 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * gtk/gtkfilechooserdefault.c (shortcuts_append_paths): insert in
+ the correct place instead of naïvely appending.
+ (shortcuts_add_volumes): refilter the model
+ (shortcuts_add_bookmarks): refilter the model
+ (gtk_file_chooser_default_add_shortcut_folder): refilter the model
+
2004-03-04 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdialog.c (response_cb): New handler. Ask the
shortcuts_append_paths (GtkFileChooserDefault *impl,
GSList *paths)
{
+ int start_row;
int num_inserted;
+ /* As there is no separator now, we want to start there.
+ */
+ start_row = shortcuts_get_index (impl, SHORTCUTS_BOOKMARKS_SEPARATOR);
num_inserted = 0;
for (; paths; paths = paths->next)
error = NULL;
/* NULL GError, but we don't really want to show error boxes here */
-
- if (shortcuts_insert_path (impl, -1, FALSE, NULL, path, NULL, TRUE, NULL))
+ if (shortcuts_insert_path (impl, start_row + num_inserted, FALSE, NULL, path, NULL, TRUE, NULL))
num_inserted++;
}
GtkFileSystemVolume *volume;
volume = l->data;
-
shortcuts_insert_path (impl, start_row + n, TRUE, volume, NULL, NULL, FALSE, NULL);
n++;
}
impl->num_volumes = n;
-
g_slist_free (list);
+
+ if (impl->shortcuts_filter_model)
+ gtk_tree_model_filter_refilter (GTK_TREE_MODEL_FILTER (impl->shortcuts_filter_model));
}
/* Used from shortcuts_remove_rows() */
{
shortcuts_insert_separator (impl, SHORTCUTS_BOOKMARKS_SEPARATOR);
}
+ if (impl->shortcuts_filter_model)
+ gtk_tree_model_filter_refilter (GTK_TREE_MODEL_FILTER (impl->shortcuts_filter_model));
}
/* Appends a separator and a row to the shortcuts list for the current folder */
if (result)
impl->num_shortcuts++;
+ if (impl->shortcuts_filter_model)
+ gtk_tree_model_filter_refilter (GTK_TREE_MODEL_FILTER (impl->shortcuts_filter_model));
+
return result;
}